package com.bee.bootstrap.system.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liekkas
 * @since 2018-04-11
 */
@TableName("base_sys_sequence")
public class Sequence extends Model<Sequence> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.ID_WORKER)
	private Long id;
	@TableField("table_name")
	private String tableName;
	@TableField("column_name")
	private String columnName;
	@TableField("next_val")
	private Integer nextVal;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public Integer getNextVal() {
		return nextVal;
	}

	public void setNextVal(Integer nextVal) {
		this.nextVal = nextVal;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
